from django.conf.urls import url
from base import views
from django.urls import path, include

from django.conf.urls import url
from rest_framework_swagger.views import get_swagger_view

schema_view = get_swagger_view(title='Upload API')

from base.views import SwaggerSchemaView

# from  rest_framework import routers
# router = routers.DefaultRouter()
# router.register(r'users',views.UserViewSet,base_name='user')

urlpatterns = [
    url(r'^getkey',views.GetKey.as_view(),name='getkey'),
    url(r'^register',views.RegisterAccount.as_view(),name='register'),
    url(r'^uploadfile',views.UploadFile.as_view(),name='uploadfile'),
    url(r'^docs', SwaggerSchemaView.as_view(), name="docs"),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
]